%% getSecondsPerPixel
%
% Returns the number of seconds per pixel
%
%% Synatax
%
% [ secondsPerPixel ] = getSecondsPerPixel( numberOfSeconds, pixels )
%
% [0.2] = getSecondsPerPixel( 1, 5);
%
%% Description
%
%* N/A
%
%% Arguments
%
%* numberOfSeconds                      - Double: The number of seconds
%                                                 Must be greater than zero.
%
%* numberOfPixels                       - Double: The number of pixels.
%                                                 Must be greater zero.
%
%% Returns
%
%* secondsPerPixel                      - Double: The ratio of seconds to
%                                                 pixels
%
%% Function Side Effects
%
%* N/A
%
%% Exceptions
%
%* N/A
%
%% See Also
% 

function [ secondsPerPixel ] = getSecondsPerPixel( numberOfSeconds, numberOfPixels )

assert(isempty(numberOfSeconds) == 0, 'getSecondsPerPixel:emptyNumberOfSeconds', ...
       'numberOfSeconds cannot be empty');
   
assert(isempty(numberOfPixels) == 0, 'getSecondsPerPixel:emptyNumberOfPixels', ...
       'numberOfPixels cannot be empty');   

assert(numberOfSeconds > 0, 'getSecondsPerPixel:invalidNumberOfSecondsValue', ...
       'numberOfSeconds must be greater than zero');   
 
assert(numberOfPixels > 0, 'getSecondsPerPixel:invalidNumberOfPixelsValue', ...
       'numberOfPixels must be greater than zero');   
      
secondsPerPixel = numberOfSeconds / numberOfPixels;

end

